package adv1;

/**
 * @author oldliu
 * @since 1.0
 */
public class Sb {
    public static void main(String[] args) {
        StringBuilder sb=new StringBuilder();
        sb.append("hello");
        sb.append(5*14);
        sb.append(2>1);
        sb.append(4<6);
        sb.append('福');
        sb.append(12.56/3.1);
        System.out.println(sb);
        sb.delete(2,5);
        System.out.println(sb);
        sb.insert(6,"老刘是个小帅哥");
        System.out.println(sb);
        //链式操作
        sb.append("machao").append("杭州").append("老夫破").append("75");
        sb.reverse();//颠倒
        System.out.println(sb);
    }
}
